This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~Sarah Ekfanater 3.Dec.03 10:22 AM a Web browser Domino Designer6.0.2 CF2Windows 2000
Hi guys,
another misterious situation with Lotus Notes.
I have a class called ASAConfig, I initialize it in another scriptlib using the new statement.
In my class ASAConfig I have a property which returns a configdocument ( Notesdocument ).
The code of the property is the following:
Function getConfigDocument ( strView As String, strKey As String ) As Notesdocument
On Error Goto errHandler
Dim lkpDB As NotesDatabase
Dim viwConfig As NotesView
Dim docConfig As NotesDocument
Set lkpDB = Me.LocalLookUpDB ' (returns the config-database )
Set viwConfig = lkpDB.getView ( strView )
Set Me.docConfig = viwConfig.getDocumentByKey ( strKey )
Set getConfigDocument = docConfig
leave:
Exit Function
errHandler:
Set getConfigDocument = Nothing
Resume leave
End Function
Seems to be correct, when I try to use the function and debug it all seems to be correct, I have all the variables and objects declared and with the correct values. As soon as I leave the function my returnvalue on the other scriptlib is empty.